# -*- coding:utf-8 -*-
"""
@Time : 2021/3/16 00:22
@Author: langengel
@Des: 系统API
"""
from fastapi import APIRouter
from application.home.index import status, index
from application.system.rule import create_rule
from application.home.test import test

system = APIRouter()
system.get("/", tags=["主页"], summary="home")(index)
system.get("/get/sudden/death/status", tags=["获取猝死状态"], summary="status")(status)
system.get("/test", tags=["主页"], summary="测试")(test)
system.post("/system/rule/add", tags=["系统"], summary="权限")(create_rule)
